﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using muaban.services;
using muaban.services.Interfaces;

namespace muaban.web.Controllers
{
    public class SiteController : Controller
    {
        private readonly ITopicService _topService = new TopicService();
 
        public ActionResult Search(string searchCriteria, int pageIndex = 0)
        {
            ViewBag.Topics = _topService.GetTopicsByCriteria(searchCriteria, pageIndex);
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
